package com.chixing.day05_oop.b;

import com.chixing.day05_oop.a.Father;

public class Test {
    public static void main(String[] args) {
        Father fa = new Father();
        fa.x = 1;//public
        //fa.z = 1;//Father类protected不能调用


        Son s1 = new Son();
        s1.x = 1;//public
        //s1.z = 1;//Father类protected不能调用
        s1.z1 = 1;//Son类中protected

        //boolean a =
    }
}
